package com.woniuxy.daos;

import com.woniuxy.entitys.TbDepartment;
import com.woniuxy.entitys.TbDepartmentExample;
import java.util.List;

import com.woniuxy.entitys.TbHospital;
import org.apache.ibatis.annotations.Param;

public interface TbDepartmentDao {
    long countByExample(TbDepartmentExample example);

    int deleteByExample(TbDepartmentExample example);

    int deleteByPrimaryKey(Integer did);

    int insert(TbDepartment record);

    int insertSelective(TbDepartment record);

    List<TbDepartment> selectByExample(TbDepartmentExample example);

    TbDepartment selectByPrimaryKey(Integer did);

    int updateByExampleSelective(@Param("record") TbDepartment record, @Param("example") TbDepartmentExample example);

    int updateByExample(@Param("record") TbDepartment record, @Param("example") TbDepartmentExample example);

    int updateByPrimaryKeySelective(TbDepartment record);

    int updateByPrimaryKey(TbDepartment record);


    List<TbDepartment> getDepartments();

    List<TbDepartment> getDepartmentByHid(Integer hid);
    List<TbDepartment> getAllDepartment();

    List<TbDepartment> selDepartmentByLoginuser(@Param("uid") Integer uid);

    int updateSoftdel(@Param("did") Integer did);

    List<TbDepartment> selDepartmentByCondition(@Param("uid") Integer uid,@Param("keyword") String keyword);

    List<TbDepartment> getNullDep(Integer hid);
}